package com.gxuwz.PangGuangyao.business.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.PangGuangyao.business.dao.CulumDAO;
import com.gxuwz.PangGuangyao.business.entity.Culum;
import com.gxuwz.core.pagination.Result;
@Service("culumServiceImpl ")
public class CulumServiceImpl implements ICulumService{
	@Autowired
	private CulumDAO culumDAO;
	@Override
	/**
	 * @return
	 * @author lw
	 * @date 2020.02.20
	 * @description:分页查询课程列表
	 */
	public Result<Culum> find(Culum culum, int page, int row) {
		
		return culumDAO.find(culum, page, row);
	}
	
	@Override
	/**
	 * @return
	 * @author lw
	 * @date 2020.02.20
	 * @description:通过课程ID去查询课程
	 */
	public Culum findByCId(Culum culum) {
		// TODO Auto-generated method stub
		return culumDAO.findByCId(culum);
	}

	@Override
	/**
	 * @return
	 * @author lw
	 * @date 2020.02.20
	 * @description:添加课程
	 */
	public void add(Culum culum) {
		// TODO Auto-generated method stub
		culumDAO.add(culum);  
	}

	@Override
	public void delete(Culum culum) {
		culumDAO.delete(culum);
	}
	
	

}
